package com.geo.result.controller;

import com.geo.result.domain.TCanModifyDataDic;
import com.geo.result.service.ITCanModifyDataDicService;
import com.sino.common.core.web.controller.BaseController;
import com.sino.common.core.web.domain.AjaxResult;
import com.sino.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/datadic")
public class TCanModifyDataDicController extends BaseController{
    @Autowired
    ITCanModifyDataDicService tCanModifyDataDicService;


    /**
     * 查询资料申请单列表
     */
    @PreAuthorize("@ss.hasPermi('result:datadic:list')")
    @GetMapping("/list")
    public AjaxResult list(TCanModifyDataDic tCanModifyDataDic)
    {
        List<TCanModifyDataDic> list = tCanModifyDataDicService.selectChildTCanModifyDataDicList(tCanModifyDataDic);
        return AjaxResult.success(list);
    }
}
